package com.walker.taogong.datamodel;

public enum TaskPrivacy
{

    ALL('A'),
    ONLYWORKER('W');
    
    private char type;
    private TaskPrivacy(char c)
    {       
        this.type = c;
    }
    public char getType()
    {
        return type;
    }

    public static TaskPrivacy valueOf(char c)
    {
        for(TaskPrivacy t : TaskPrivacy.values())
            if(t.type == c)
                return t;
        
        return ALL;
    }

}
